home *** CD-ROM | disk | FTP | other *** search
- #include "hypprn.h"
-
- HypertextPrint::HypertextPrint(rect coord, char* vName, char* fName,
- int res, int interv,
- BORDERS b_type, int s, char* h, int bak, int attr,
- int p_height)
- : HypertextView(coord, vName, fName, res, interv, b_type, s, h, bak,
- attr, p_height)
- {
- int sx = textX(s);
- int sy = textY(s);
-
- print_to_prn = new Button(rect(coord.origin.X + 10 + sx,
- coord.corner.Y - 2 - sy, coord.origin.X + 30 + sx,
- coord.corner.Y - sy - 1), " PRINTER ");
- print_to_prn->set_ret(1);
- /* print_to_file = new Button(rect(coord.origin.X + 30 + sx,
- coord.corner.Y - 2 - sy, coord.origin.X + 50 + sx,
- coord.corner.Y - sy - 1), " FILE ");
- print_to_file->set_ret(1);
- */
- insert(print_to_prn, 2);
- // insert(print_to_file, 2);
-
- // assign(view_win, print_to_file, AC_OK);
- assign(view_win, print_to_prn, AC_OK);
-
- view_win->set_ret(RET_OK | RET_CANCEL);
- }
- /////////////////////////////////
-